import request from '@/utils/request'

export const addDepartments = data => request.post('/company/department', data)

export const getDepartments = () => request.get('/company/department')

export const updateDepartments = data => request.put('/company/department/' + data.id, data)

export const delDepartments = id => request.delete('/company/department/' + id)

export const getDepartmentDetail = id => request.get('/company/department/' + id)
